﻿using System;
using fastCSharp;
using fastCSharp.code.cSharp;

namespace diantou.dataModel.path
{
    /// <summary>
    /// OJ测试URL
    /// </summary>
    public struct judge
    {
        /// <summary>
        /// 提交标识
        /// </summary>
        public int Id;
        /// <summary>
        /// 格式化URL
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        private webView.hashUrl get(string path)
        {
            return new webView.hashUrl { Path = path, Query = "judgeId=" + Id.toString() };
        }
        /// <summary>
        /// 提交详细页面
        /// </summary>
        public webView.hashUrl SubmitDetail
        {
            get { return get("/onlineJudge/submitDetail.html"); }
        }
    }
}
